package com.hopes.bizz.common.core.validate;

import lombok.Data;

/**
 * 校验错误消息
 *
 * @author: xk
 * @since: 1.0.0
 * @version: [1.0.0, 2020/6/30]
 */
@Data
public class ErrorMessage {
    /**
     * 字段名
     */
    private String field;
    /**
     * 提示信息
     */
    private String message;

    /**
     * 错误消息
     * @param field
     * @param message
     */
    public ErrorMessage(String field, String message) {
        this.field = field;
        this.message = message;
    }
}
